package abstraction.refinedAbstraction;

import abstraction.Shape;
import implementor.Color;

// 扩充抽象类 - 圆形
public class Circle extends Shape {
    public Circle(Color color) {
        super(color);
    }

    @Override
    public void draw() {
        System.out.print("Drawing Circle: ");
        color.applyColor(); // 委托给颜色实现
    }
}